﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BanmaytinhDAL;
using System.Data;
using System.Web;

namespace BanmaytinhBOL
{
   public class HangBOL
    {
       private static HangDAL db = new HangDAL();
       private static HangInfo obj;

       public static List<BanmaytinhDAL.HangInfo> Hang_GetByAll()
       {
           return db.Hang_GetByAll();
       }
       public static BanmaytinhDAL.HangInfo Hang_GetById( String Mahang)

       {
           return db.Hang_GetById(Mahang);
       
       }

       public static bool Hang_Insert(HangInfo data)
       {
           return db.Insert(data);
       }


       public static bool Hang_Update(HangInfo data)
       {
           return db.Update(data);
       }


       public static bool Hang_Delete(string Mahang)
       {
           return db.Delete(Mahang);
       }

    }
}
